import 'package:json_annotation/json_annotation.dart';

part 'k_value.g.dart';

@JsonSerializable()
class KValue extends Object {
  @JsonKey(name: 'value')
  String value;

  @JsonKey(name: 'name')
  String name;

  KValue(
    this.name,
    this.value,
  );

  factory KValue.fromJson(Map<String, dynamic> srcJson) =>
      _$KValueFromJson(srcJson);

  Map<String, dynamic> toJson() => _$KValueToJson(this);
}
